package com.zingrow.web.configure.distribute.service;

import java.util.Date;
import java.util.List;

import com.zingrow.common.utils.PageView;
import com.zingrow.web.configure.distribute.model.InformationDistributeModel;

public interface IInformationDistributeService {
	
	// 单个查询
	List<InformationDistributeModel> findifmId(
			Class<?> InformationDistributeModel, String articleId,String ifmId,Integer groupIdS);
	
	InformationDistributeModel findId(Class<?> InformationDistributeModel,String id);
	//修改查询用
	InformationDistributeModel selectByid(Class<?> InformationDistributeModel,String ifmId,String articleId);
	// 查询全部
	// List<InformationDistributeModel> findAl(Class<?>
	// InformationDistributeModel,Date startTime,Date endTime,PageView
	// pageView);

	// 多条件模糊查询
	List<InformationDistributeModel> findGroup(
			Class<?> InformationDistributeModel, String title, String content,
			String websiteName, Date releaseTime1, Date releaseTime2,
			String articleType, PageView pageView, List<String> idlist,
			String url);

	// 修改
	boolean update(InformationDistributeModel bute);

	// 编辑删除
	boolean delete(String articleId, String ifmId);

	// 页面删除
	boolean deleteByField(Class<?> InformationDistributeModel,  List<String> groupId,Date startTime,Date endTime,String idlist );

	/*
	 * //查询有多少数据 Integer selectcount(Class<?> InformationDistributeModel);
	 */

	// 导出列表
	/*List<InformationDistributeModel> findAllid(
			Class<?> InformationDistributeModel, List<String> ids);*/

	// 根据条件查询--导出所有数据
	List<InformationDistributeModel> findGroupAll(
			Class<?> InformationDistributeModel, String title, String content,
			String websiteName, Date startTime, Date endTime,
			String articleType, String url, List<String> idlist);

	// 根据条件查询--导出所有文章
	List<InformationDistributeModel> findWordAll(
			Class<?> InformationDistributeModel, String title, String content,
			String websiteName, Date startTime, Date endTime,
			String articleType, String url, List<String> idlist);

	// 导出文章
	/*List<InformationDistributeModel> exportWordForPageData(
			Class<?> InformationDistributeModel, List<String> ids);*/
	List<InformationDistributeModel> exportWordForPageData(
			Class<?> InformationDistributeModel, List<String> ids,String title, String content,
			String websiteName, Date startTime, Date endTime,
			String articleType, String url, List<String> idlist);
	
	List<InformationDistributeModel> findAllid(
			Class<?> InformationDistributeModel, List<String> ids,String title, String content,
			String websiteName, Date startTime, Date endTime,
			String articleType, String url, List<String> idlist);

}
